import "./banner-dian.css";
import tpl from "./banner-dian.tpl";

import {tplReplace} from "../../../utils/tools";

export default (num)=>{
    return{
        name:"banner-dian",
        tpl(){
            let list = "";
            for(let i=0;i<num;i++){
                list += tplReplace(tpl(),{
                    bannerDianStyle:i==0?"active":""
                })
            }
            return list;
        }
    }
}
